package com.example.design.factory;

import com.example.design.DataDictionary;
import lombok.Getter;

/**
 * @author shishaopeng
 */
@Getter
public enum ThirdPlatformEnum implements DataDictionary {

    JD("JOS", "京东", "JOS"),
    DING_TALK("ding-talk", "钉钉", ""),
    OTHER("other", "其他", "other");

    private final String dictCode;
    private final String dictName;

    private final String platform;

    ThirdPlatformEnum(String dictCode, String dictName, String platform) {
        this.dictCode = dictCode;
        this.dictName = dictName;
        this.platform = platform;
    }

    @Override
    public String getDictCode() {
        return dictCode;
    }

    @Override
    public String getDictName() {
        return dictName;
    }

    @Override
    public String getDictItemDesc() {
        return dictName;
    }

    @Override
    public int intValue() {
        return this.ordinal();
    }
}
